<template>
	<view>
		<scroll-view class="scroll-bar" scroll-with-animation="true" scroll-y="true">
			<view class="itemWrap">
				<view class="item" v-for="(item, i) in list" :key="i">
					<view class="ileft">
						<image src="../../static/emoji/0.gif" mode=""></image>
						<view class="iltext">
							{{item.info}}
						</view>
					</view>

					<view class="iright">
						<view class="irbox">
							<text class="irbtext1">案件详情</text>
							<text class="irbtext2" @click="yes">同意</text>
							<text class="irbtext3" @click="no">拒绝</text>
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		props: {
			list: {
				type: Array,
				default: []
			},
		},
		data() {
			return {

			}
		},
		methods: {
			yes() {
				uni.showModal({
					title: '同意接收此案件?',
					success: (res) => {
						if (res.confirm) {

						}
					}
				});
			},
			no() {
				uni.showModal({
					title: '拒绝接收此案件?',
					success: (res) => {
						if (res.confirm) {

						}
					}
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.scroll-bar {
		flex: 1;
		height: 100%;

		.itemWrap {
			padding: 20rpx;


			.item {
				background-color: #fff;
				border-radius: 10rpx;
				height: 150rpx;
				margin-bottom: 20rpx;
				display: flex;
				flex-direction: column;
				padding: 40rpx;

				.ileft {
					font-size: 26rpx;
					height: 80rpx;
					display: flex;
					align-items: center;

					image {
						width: 75rpx;
						height: 75rpx;
					}

					.iltext {
						margin-left: 10rpx;
					}
				}

				.iright {
					flex: 1;
					display: flex;
					justify-content: flex-end;
					align-items: center;

					.irbox {
						font-size: 25rpx;

						text {
							margin: 0 10rpx;
							color: #fff;
							padding: 5rpx 10rpx;
							border-radius: 10rpx;
						}

						.irbtext1 {
							background-color: #FF9C27;
						}

						.irbtext2 {
							background-color: #409EFF;
						}

						.irbtext3 {
							background-color: #F56C6C;
						}
					}
				}
			}
		}

	}
</style>